using System;
using System.Data.SqlClient;

namespace PropertyExpression.ControllableQuery.Test2
{
    public static class QFunc
    {
        public static Func<SqlCommand, TResult> Apply<T, TResult>(this T arg, Func<T, SqlCommand, TResult> func)
        {
            return command => func(arg, command);
        }
    }
}